package com.yx.musicplayer.ui.adapter;

import com.chad.library.adapter.base.entity.MultiItemEntity;
import com.yx.musicplayer.bean.Album;
import com.yx.musicplayer.bean.Artist;
import com.yx.musicplayer.bean.FolderInfo;
import com.yx.musicplayer.greendao.Song;

/**
 * Created by yx on 2017/11/1 0001.
 */

public class MusicItem implements MultiItemEntity {
    public static final int  SPECIAL_SONG=0; //专曲
    public static final int  SINGER=1; //歌手
    public static final int  ALBUM=2; //专辑
    public static final int  FOLDER=3; //文件夹
    private int itemType;
    private Song songs;
    private Artist artist;
    private Album album;
    private FolderInfo folderInfo;

    public void setAlbum(Album album) {
        this.album = album;
    }

    public Album getAlbum() {
        return album;
    }

    public MusicItem() {
    }

    public FolderInfo getFolderInfo() {
        return folderInfo;
    }

    public void setFolderInfo(FolderInfo folderInfo) {
        this.folderInfo = folderInfo;
    }

    public void setItemType(int itemType) {
        this.itemType = itemType;
    }

    public void setSongs(Song songs) {
        this.songs = songs;
    }

    public Artist getArtist() {
        return artist;
    }

    public void setArtist(Artist artist) {
        this.artist = artist;
    }

    public MusicItem(int itemType, Song songs) {
        this.itemType = itemType;
        this.songs = songs;
    }

    public Song getSongs() {
        return songs;
    }

    @Override
    public int getItemType() {
        return itemType;
    }
}
